#include "DataStructure/Input/Property/PSHEARData.h"

#include "DataStructure/Common/Validation.h"

bool SG::DataStructure::FEM::operator== (const PSHEARData &a, const PSHEARData &b)
{
    if (a.m_id != b.m_id)
    {
        return false;
    }
    if (a.m_mId != b.m_mId)
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_thickness, b.m_thickness))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_nsm, b.m_nsm))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_F[0], b.m_F[0]))
    {
        return false;
    }
    if (!SG::DataStructure::Common::isNear (a.m_F[1], b.m_F[1]))
    {
        return false;
    }
    if (a.m_domainId != b.m_domainId)
    {
        return false;
    }
    return true;
}